<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>Insert title here</title>

<script type="text/javascript">

function add()
{
	tb = document.getElementById("msgbody");
	
    var vv = new Array();
    vv.push('<tr>')
    vv.push('<td>')
    vv.push('abc');
    vv.push('</td>');
    vv.push('<td>')
    vv.push('abc');
    vv.push('</td>');
    vv.push('<td>')
    vv.push('abc');
    vv.push('</td>');
    vv.push('<td>')
    vv.push('abc');
    vv.push('</td>');
    vv.push('</tr>');
    
    tb.innerHTML += vv.join('');
}

</script>


</head>
<body>

        <table border="1" id="msgtable">
            <caption>消息列表</caption>
            <thead>
                <tr> 
                    <th>发送者</th>
                    <th>接收者</th>
                    <th>内容</th>
                    <th>发送时间</th>
                </tr>
            </thead>
            <tbody id="msgbody">
            </tbody>
        </table>
        
       <div id="msgshow"></div>
       
       <form action="#" onsubmit="return add()">
            <input type="submit" value="commit">
       </form>

</body>
</html>